<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修德抄经堂</title>
</head>
<body>
<script>
    //location.href = "http://localhost/web/front/common.html?code=071De47l14lhWi0nkb9l149R6l1De476&state="
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var result = document.location.search.substr(1).match(reg);
        return result ? encodeURI(result[2]) : null;
    }

   var code = getUrlParam('code')
</script>
</body>
</html>